package com.demo.reservation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.reservation.domain.Reservation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ReservationMapper extends BaseMapper<Reservation> {
    IPage<Reservation> searchByParam(Page<Reservation> page,
                                     @Param("userName") String username,
                                     @Param("userPhone") String phone);
//    IPage<Reservation> searchByParam(Page<Reservation> page,@Param("q") ReservationParam param);
}
